package com.example.project3.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.project3.entity.WorkGroup;
import com.example.project3.mapper.WorkGroupMapper;
import com.example.project3.service.WorkGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 23931
 * @description 针对表【work_group】的数据库操作Service实现
 * @createDate 2023-06-05 14:26:51
 */
@Service
public class WorkGroupServiceImpl extends ServiceImpl<WorkGroupMapper, WorkGroup>
        implements WorkGroupService {

    private WorkGroupMapper workGroupMapper;

    @Override
    public List<Map<String, Object>> getTeamMemberByProjectId(Integer projectId) {
        return workGroupMapper.getTeamMemberByProjectId(projectId);
    }

    @Autowired
    public void setWorkGroupMapper(WorkGroupMapper workGroupMapper) {
        this.workGroupMapper = workGroupMapper;
    }
}